package cn.jzq.kotoba.modules.designpattern.command.control;

/**
 * @author jzq
 * @date 2019/3/6 10:41
 */
public class DoorOpenCommand implements Command{

    Door door;

    public DoorOpenCommand(Door door) {
        this.door = door;
    }

    @Override
    public void execute() {
        door.open();
    }
}
